<div class="wrapper">
  <style>
    body{background: #FAEAD1}
  </style>
    <div class="">
      <div class="change_photo_wall">
	<a href="/users/change_photo_wall">换一批</a>
      </div>
      <div>
	<%foreach from=$photos item=photo name=wall%>
	<%assign var=i value=$smarty.foreach.wall.index%>
	<div class="left photo">
	  <a href="/users/album?userid=<%$photo.user_id%>">
	    <img class="photo-in-wall" src="<%$photo.thumb%>" 
		 alt="<%$photo.realname%>"
		 style="position: relative;-moz-transform: rotate(<%$rand.$i%>deg); -webkit-transform: rotate(<%$rand.$i%>deg);transform: rotate(<%$rand.$i%>deg);" 
		 onmouseover="this.style.cssText='position: relative;z-index:1000;-moz-transform: scale(1.2);-webkit-transform: scale(1.2);transform: scale(1.2);border: 5px solid #fff776'"
		 onmouseout="this.style.cssText='z-index: 2; -moz-transform: rotate(<%$rand.$i%>deg);-webkit-transform: rotate(<%$rand.$i%>deg);transform: rotate(<%$rand.$i%>deg);';"
		 /></a><br/>
		 <a href="/tree/index?userid=<%$photo.user_id%>"><%$photo.realname%></a>&nbsp;
	</div>
	<%/foreach%>
	<div class="clear">
	</div>
      </div>
      <div class="change_photo_wall">
	<a href="/users/change_photo_wall">换一批</a>
      </div>
    </div>
  </div>
